home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / ToggleB.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  1.9 KB  |  74 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: ToggleB.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:53:23 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. /***********************************************************************
  14.  *
  15.  * Toggle Widget
  16.  *
  17.  ***********************************************************************/
  18. #ifndef _XmToggle_h
  19. #define _XmToggle_h
  20.  
  21. #include <Xm/Xm.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. externalref WidgetClass xmToggleButtonWidgetClass;
  28.  
  29. typedef struct _XmToggleButtonClassRec *XmToggleButtonWidgetClass;
  30. typedef struct _XmToggleButtonRec      *XmToggleButtonWidget;
  31.  
  32. /*fast subclass define */
  33. #ifndef XmIsToggleButton
  34. #define XmIsToggleButton(w)     XtIsSubclass(w, xmToggleButtonWidgetClass)
  35. #endif /* XmIsToggleButton */
  36.  
  37.  
  38. /********    Public Function Declarations    ********/
  39. #ifdef _NO_PROTO
  40.  
  41. extern Boolean XmToggleButtonGetState() ;
  42. extern void XmToggleButtonSetState() ;
  43. extern Widget XmCreateToggleButton() ;
  44.  
  45. #else
  46.  
  47. extern Boolean XmToggleButtonGetState( 
  48.                         Widget w) ;
  49. extern void XmToggleButtonSetState( 
  50.                         Widget w,
  51. #if NeedWidePrototypes
  52.                         int newstate,
  53.                         int notify) ;
  54. #else
  55.                         Boolean newstate,
  56.                         Boolean notify) ;
  57. #endif /* NeedWidePrototypes */
  58. extern Widget XmCreateToggleButton( 
  59.                         Widget parent,
  60.                         char *name,
  61.                         Arg *arglist,
  62.                         Cardinal argCount) ;
  63.  
  64. #endif /* _NO_PROTO */
  65. /********    End Public Function Declarations    ********/
  66.  
  67.  
  68. #ifdef __cplusplus
  69. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  70. #endif
  71.  
  72. #endif /* _XmToggle_h */
  73. /* DON'T ADD ANYTHING AFTER THIS #endif */
  74.